package com.xz.spi.protocol;

import com.xz.simplerpc.extension.URL;
import com.xz.simplerpc.rpc.api.Exporter;
import com.xz.simplerpc.rpc.api.Invoker;
import com.xz.simplerpc.rpc.api.Protocol;
import com.xz.simplerpc.rpc.api.RpcException;

/**
 * Created by fingal on 2018/1/6.
 */
public class DubboProtocol implements Protocol {
    @Override
    public int getDefaultPort() {
        return 0;
    }

    @Override
    public <T> Exporter<T> export(Invoker<T> invoker, URL url) throws RpcException {
        System.out.println("dubbo protocol : export");
        return null;
    }

    @Override
    public <T> Invoker<T> refer(Class<T> type, URL url) throws RpcException {
        System.out.println("dubbo protocol : refer");
        return null;
    }

    @Override
    public void destroy() {

    }
}
